package com.newly.api.sys.feign;

import com.newly.common.base.constants.ServerUriConstant;
import com.newly.common.base.entity.R;
import com.newly.common.base.entity.device.dto.DeviceDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletResponse;

/**
 * @anthor sbq
 * @date 2021/11/25 9:59
 */
@Api(tags = "设备api")
@FeignClient(path = ServerUriConstant.NEWLY_SYS_DEVICE, name = ServerUriConstant.NEWLY_SYS_SERVICE_NAME)
public interface DeviceClient {

    @ApiOperation("导出设备监控表")
    @GetMapping("/export")
    void export(HttpServletResponse response,DeviceDto deviceDto);

    @ApiOperation("获取所有设备名称")
    @GetMapping("/getNames")
    R getNames();

    @ApiOperation("设备监控")
    @GetMapping("/monitor")
    R monitor(DeviceDto deviceDto);
}
